@extends('admin.layout.base')

@section('content')

    <div class="layui-card">
        <table class="layui-hide" id="tableData" lay-filter="myTable"></table>
    </div>

@endsection

@section('script')
    <script>
        layui.use(['table', 'layer', 'jquery'], function () {
            $ = layui.jquery;
            var table = layui.table;
            table.render({
                elem: '#tableData'
                , url: '{{route("loginLog.list")}}'
                , cols: [[
                    {field: 'id', title: 'ID', sort: true}
                    , {field: 'admin_name', title: '登录人员'}
                    , {field: 'ip', title: 'IP地址'}
                    , {field: 'created_at', title: '登录时间'}
                ]]
                , id: 'myReload'
                , page: true
            });
        });
    </script>
@endsection